int* twoSum(int* nums, int numsSize, int target, int* returnSize)
{
  int* result = (int *)malloc(sizeof(int) * 2);

  for (int i = 0; i < numsSize - 1; i++) // i: 0 -> N
  {
    for (int j = (i + 1); j < numsSize; j++) // j: (i+1) -> N
    {
      if (nums[i] + nums[j] == target) // arr[i] + arr[j] == target
      {
        result[0] = i;
        result[1] = j;
        *returnSize = 2;

        return result;
      }
    }
  }

  return result;
}
